//
//  EnjoyModel.m
//  FreeReading
//
//  Created by lanou3g on 15/10/28.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "EnjoyModel.h"

@implementation EnjoyModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    // KVC赋值保护方法
    if ([key isEqualToString:@"article"]) {
        
        self.detailUrl = value[@"weburl"];
    } else if ([key isEqualToString:@"pic"]) {
        
        self.picUrl = value[@"url"];
    } else if ([key isEqualToString:@"web"]) {
        
        self.detailUrl = value[@"url"];
    } else if ([key isEqualToString:@"weekend"]) {
        
        self.detailUrl = value[@"content_url"];
        
    }
    
}


@end
